﻿package 
{
	//BONKURA BLOG - [AS3.0]カスタムイベントの定義
	//http://blog.bonkura.jp/2008/10/as30-19.html
	//AS3でカスタムイベント | Hextomino
	//http://hextomino.tsukuba.ch/e17285.html

	import flash.events.Event;
	/**
	 * ...
	 * @author hato
	 */
	public class MyEvent extends Event  
	{  
		public static const TEST:String = "test";  
		public static const HAI_CLICK:String = "haiclick";  
		
		public var v:int;  
		
		public function MyEvent(type:String,v:int)   
		{  
			super(type);  
			this.v = v;  
		}  
		
		public override function clone():Event  
		{  
			return new MyEvent(type, v);  
		}  
		
		public override function toString():String  
		{  
			return formatToString("MyEvent", "type", "bubbles", "cancelable", "eventPhase", "v");  
		}  
		
	}  
       
	
}